<%= javascript_include_tag 'photo' %>
<div class="new-issue-form-container clearfix">
    <%= form_for @photo, url: {action: "create"}, html: {class: "form-horizontal", enctype: "multipart/form-data" } do |p|%>
    <dl class="form">
        <dt><%= p.label :title %></dt>
        <dd><%= p.text_field :title %></dd>
    </dl>
    <dl class="form">
        <dt><%= p.label :image %></dt>
        <%= file_field_tag "img"%>
    </dl>
    <img id="display" src="#" alt="your image" />
    <%= p.submit :save, :class => 'btn btn-primary' %>
    <% end %>
</div>